//
//  BeautyDeatilController.m
//  ALFashion
//
//  Created by dllo on 15/6/19.
//  Copyright (c) 2015年 dengzhicheng. All rights reserved.
//

#import "BeautyDeatilController.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
@interface BeautyDeatilController ()

@end

@implementation BeautyDeatilController
- (void)dealloc
{
    
}
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self createWebView];
}

- (void)createWebView
{
    
    NSString *pageStr = [NSString stringWithFormat:@"http://www.cnsunpower.com/iosapi/API_NEWS_CONTENT_HTML.php?method=getArticleContent&aid=%@", self.artid];
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT - 49)];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:pageStr]];
    
    [self.view addSubview:webView];
    [webView loadRequest:request];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
